import { http } from "@/utils/http";

// 消耗费用总览-厂务侧
export const getConsumeCostOverView = data => {
  return http.request("post", "/energy/energyCost/viewConsumeSummary", {
    data
  });
};

// 消耗成本-科室
export const getConsumeCostOverViewByclass = data => {
  return http.request("post", "/energy/energyCost/viewMeasurement", {
    data
  });
};

// 总产出与能耗
export const viewConsumeTotal = data => {
  return http.request("post", "/energy/energyCost/viewConsumeSystemTotal", {
    data
  });
};

// 单位产量能耗
export const viewSystemTotal = data => {
  return http.request("post", "/energy/energyCost/viewConsumeSystemUnit", {
    data
  });
};

// 消耗成本--叶子节点
export const getViewConsumeLeaf = data => {
  return http.request("post", "energy/energyCost/viewConsumeLeaf", {
    data
  });
};
